package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.UserLike;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserLikeMapper {
    int insert(UserLike record);


    UserLike getlike(@Param("userId") Long userId, @Param("likeId") Long likeId, @Param("type") Integer type);

    void deleteLike(@Param("userId") Long userId, @Param("likeId") Long likeId, @Param("type") Integer type);

    List<UserLike> selectByUserId(Long id);

    int getCountOfNoRead(Long id);

    void setToread(Long id);
}